package com.nut.spp.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 基础商品配置
 */
public enum BaseGoodsEnum {

    JBB(1, "JBB玻尿酸"),
    ;

    private Integer value;

    private String desc;

    BaseGoodsEnum(final Integer value, final String desc) {
        this.value = value;
        this.desc = desc;
    }

    private static Map<Integer, BaseGoodsEnum> map = new HashMap<>();

    static {
        for (BaseGoodsEnum stepEnum : BaseGoodsEnum.values()) {
            map.put(stepEnum.value, stepEnum);
        }
    }

    public static BaseGoodsEnum valueOf(int value) {
        return map.get(value);
    }

    public Integer getValue() {
        return this.value;
    }

    public String getDesc() {
        return this.desc;
    }
}
